import { _decorator, Component, Enum, Node } from 'cc';
import { WEAPON } from '../AshFramework/Datas/Constant';
const { ccclass, property } = _decorator;

@ccclass('Bullet')
export class Bullet {
    Name: string = "";
    BelongTo: WEAPON[] = [];
    Harm: number = 1;
    ArmorPenetration: number = 1;
    Count: number = 1;

    constructor(name: string, belongTo: WEAPON[], harm: number, AP: number, count: number) {
        this.Name = name;
        this.BelongTo = belongTo;
        this.Harm = harm;
        this.ArmorPenetration = AP;
        this.Count = count;
    }
}


